package com.fw.mediasession.media.mediastore.inter;

import androidx.lifecycle.MutableLiveData;


import com.fw.mediasession.media.bean.Music;
import com.fw.mediasession.media.bean.MyPicture;
import com.fw.mediasession.media.bean.MyVideo;
import com.fw.mediasession.media.mediastore.database.dao.MediaStoreDao;

import java.util.ArrayList;

import javax.inject.Inject;


public class GetMediaData implements MediaDataInterface {
    private MediaStoreDao storeDao;
    public MutableLiveData<ArrayList<Music>> musicMutableLiveData;
    public MutableLiveData<ArrayList<MyVideo>> videoMutableLiveData;
    public MutableLiveData<ArrayList<MyPicture>> pictureMutableLiveData;
    @Inject public GetMediaData(MediaStoreDao dao) {
        storeDao=dao;
        musicMutableLiveData=new MutableLiveData<>();
        videoMutableLiveData=new MutableLiveData<>();
        pictureMutableLiveData=new MutableLiveData<>();
    }


    @Override
    public ArrayList<Music> getMusicData() {
        return storeDao.getMusicData();
    }

    @Override
    public ArrayList<MyVideo> getVideoData() {
        return storeDao.getVideoData();
    }

    @Override
    public ArrayList<MyPicture> getPictureData() {

        return storeDao.getPictureData();
    }






}
